/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2019-03-07 20:06:15
 * @LastEditors: kl2018
 * @LastEditTime: 2020-06-23 09:58:54
 */

import { observer } from 'mobx-react';
import { WeaTools, WeaErrorPage } from 'ecCom';
import BaseListComponent from './common/BaseListComponent';
import OdocLibraryStore from '../stores/OdocLibraryStore';

// 注入数据对象
// @inject("odocLibraryStore")
@observer
/**
 * 公文库组件
 */
class OdocLibraryComponent extends BaseListComponent {
	constructor(props) {
		super(props);

		// const { odocLibraryStore } = this.props;
		const odocLibraryStore = new OdocLibraryStore();

		this.state = { listStore: odocLibraryStore };
	}
}

// export default OdocLibraryComponent;
export default WeaTools.tryCatch(React,
	props => <WeaErrorPage ecId={`${this && this.props && this.props.ecId || ''}_WeaErrorPage@h871k7`} msg={props.error ? props.error : '对不起，该页面异常，请联系管理员！'} />,
	{ error: '' },
)(OdocLibraryComponent);

